<div ng-if="pagedata.showcvlog" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showcvlog=false"></i>
			<div class="fui-tab fui-tab-danger" style="top:1.5rem;margin-top:0">
					<a ng-class="{'external active':pagedata.params.cvadd == 0}" ng-click="pagedata.params.cvadd = 0;tool.get_list('jy_yangjidan/cvlog/list/',true)">消耗记录</a>
					<a ng-class="{'external active':pagedata.params.cvadd == 1}" ng-click="pagedata.params.cvadd = 1;tool.get_list('jy_yangjidan/cvlog/list/',true)">获取记录</a>
			</div>
			<div class="fui-page-title c" style="margin-top:2rem">
				<div class="gray" style="font-size:0.65rem">累计CV:({{pagedata.cvlog.allcv||0}})，可用CV:({{pagedata.cvlog.cancv||0}})，临时CV:({{pagedata.cvlog.cv3||0}})，已用CV:({{pagedata.cvlog.iscv||0}})，过期CV:({{pagedata.cvlog.cv4||0}})，待收货CV:({{pagedata.cvlog.cv0||0}})，待结算CV:({{pagedata.cvlog.cv1||0}})</div>
			</div>
			<div class="fui-cell-group" style="margin-top:0;padding:0.5rem;height:20rem;overflow-y:scroll">
				<div ng-repeat="item in pagedata.list" class="fui-cell" style="padding:0.5rem;">
						<div class="fui-cell-text">
							<div class="syscolor"><span class="label label-success">{{item.typetitle}}</span>：{{item.fee}}个</div>
							<div style="font-size:0.6rem;color:#999">{{item.msg}}</div>
							<div style="font-size:0.6rem;color:#999">{{item.createtime}}</div>
						</div>
						<div class="fui-cell-remark noremark">
							<span class="label label-success">{{item.statustitle}}</span>
						</div>
				</div>
			</div>
		</div>
	</div>
	<script>
	if(scope.pagedata.showcvlog){
		scope.pagedata.params.cvadd=0
		scope.pagedata.loading=true;
		scope.tool.get_list('jy_yangjidan/cvlog/list/',true);
		scope.pagedata.scroll_bottom=function(){
			scope.tool.get_list('jy_yangjidan/cvlog/list/');
		}
	}
	</script>
</div>